﻿using System;
using System.ComponentModel.DataAnnotations;

namespace AfrikDotnetWebSite.Models
{
    public class News
    {
        public int Id { get; set; }
        public DateTime Date { get; set; }

        [Required]
        [StringLength(int.MaxValue, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 2)]
        [DataType(DataType.MultilineText)]
        [Display(Name = "Text")]
        public string Text { get; set; }
    }

    public class Show
    {
        public int Id { get; set; }
        public string Image { get; set; }

        [Required]
        [StringLength(55, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 2)]
        [DataType(DataType.Text)]
        public string Label { get; set; }

        [Required]
        [StringLength(int.MaxValue, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 2)]
        [DataType(DataType.Text)]
        public string Link { get; set; }

        [Required]
        [Display(Name = "Is active?")]
        public bool IsActive { get; set; }
    }
}